home *** CD-ROM | disk | FTP | other *** search
- #-------------------------------------------------------------------------------
- # defaultevents.tcl
- # =================
- # Define the default event handlers for feedback events. This file
- # is automatically loaded when a part is activated.
- #
- # (C) 2002 RadonLabs GmbH
- #
- # 03-Apr-02 floh created
- #-------------------------------------------------------------------------------
-
- puts "*** LOADING DEFAULT EVENT HANDLERS"
-
- #-------------------------------------------------------------------------------
- # The player island, or a player building is attacked by missile or
- # machine guns.
- #-------------------------------------------------------------------------------
- on _islandattacked {
- playfeedbacksound book:feedback/islandattacked.wav
- textmessage island_attacked
- }
-
- #-------------------------------------------------------------------------------
- # A navpoint has been enabled.
- #-------------------------------------------------------------------------------
- on _navpointenabled {
- playfeedbacksound book:feedback/navpointenabled.wav
- textmessage navpoint_available
- }
-
- #-------------------------------------------------------------------------------
- # A navpoint has been reached
- #-------------------------------------------------------------------------------
- on _navpointreached {
- playfeedbacksound book:feedback/navpointreached.wav
- textmessage navpoint_reach
- }
-
- #-------------------------------------------------------------------------------
- # The player vehicle is inside the danger zone around the player island.
- #-------------------------------------------------------------------------------
- on _indangerzone {
- playfeedbacksound book:feedback/indangerzone.wav
- textmessage danger
- }
-
- #-------------------------------------------------------------------------------
- # The part is over (including fadeout)
- #-------------------------------------------------------------------------------
- on _partfinished {
- /game/handler/book.activatenextpart
- }
-
- #-------------------------------------------------------------------------------
- # There is no place to build on the island
- #-------------------------------------------------------------------------------
- on _nobuildareaavailable {
- playfeedbacksound book:feedback/nobuildarea.wav
- textmessage no_buildslot
- }
-
- #-------------------------------------------------------------------------------
- # An artefact has been collected by the player.
- #-------------------------------------------------------------------------------
- on _artefactcollected {
- playfeedbacksound book:feedback/artefactcollected.wav
- }
-
- #-------------------------------------------------------------------------------
- # The player repairs a building
- #-------------------------------------------------------------------------------
- on _repairbuilding {
- playfeedbacksound book:feedback/repairbuilding.wav
- }
-
- #-------------------------------------------------------------------------------
- # The player has no energy for a specific action
- #-------------------------------------------------------------------------------
- on _noenergy {
- playfeedbacksound book:feedback/noenergy.wav
- textmessage notenough_energy
- }
-
- #-------------------------------------------------------------------------------
- # The player tries to open an empty menu
- #-------------------------------------------------------------------------------
- on _emptymenu {
- playfeedbacksound book:feedback/emptymenu.wav
- textmessage belt_empty
- }
-
- #-------------------------------------------------------------------------------
- # A possessed airplane has been destroyed
- #-------------------------------------------------------------------------------
- on _airplane_destroyed {
- playfeedbacksound book:feedback/airplane_destroyed.wav
- textmessage airplane_destroyed
- }
-
- #-------------------------------------------------------------------------------
- # A possessed building has been destroyed
- #-------------------------------------------------------------------------------
- on _building_destroyed {
- playfeedbacksound book:feedback/building_destroyed.wav
- textmessage building_destroyed
- }
-
- #--------------------------------------------
- # The islanddrive has been activated
- #-------------------------------------------------------------------------------
- on _drive_activated {
- playfeedbacksound book:feedback/drive_activated.wav
- textmessage drive_activated
- }
-
- #--------------------------------------------
- # The islanddrive has been activated
- #-------------------------------------------------------------------------------
- on _drive_deactivated {
- playfeedbacksound book:feedback/drive_deactivated.wav
- textmessage drive_deactivated
- }
-
- #--------------------------------------------
- # The lighthouse energy is low
- #-------------------------------------------------------------------------------
- on _energy_low {
- playfeedbacksound book:feedback/energy_low.wav
- textmessage energy_low
- }
-
- #--------------------------------------------
- # No energy to shoot
- #-------------------------------------------------------------------------------
- on _no_ammunition {
- playfeedbacksound book:feedback/no_ammunition.wav
- textmessage no_ammunition
- }
-
- #--------------------------------------------
- # Airplane explodes because of distance death
- #-------------------------------------------------------------------------------
- on _radius_reached {
- playfeedbacksound book:feedback/radius_reached.wav
- textmessage radius_reached
- }
-
- #--------------------------------------------
- # player takes control of vehicle
- #-------------------------------------------------------------------------------
- on _taken_control {
- playfeedbacksound book:feedback/taken_control.wav
- textmessage taken_control
- }
-
- #--------------------------------------------
- # player stands inside house menu area
- #-------------------------------------------------------------------------------
- on _use {
- playfeedbacksound book:feedback/use_ok.wav
- textmessage use
- }
-
- #-------------------------------------------------------------------------------
- # The player's belt is full
- #-------------------------------------------------------------------------------
- on _beltfull {
- playfeedbacksound book:feedback/beltfull.wav
- textmessage belt_full
- }
-
- #-------------------------------------------------------------------------------
- # The current build slot is occupied
- #-------------------------------------------------------------------------------
- on _buildslotblocked {
- playfeedbacksound book:feedback/buildslot_blocked.wav
- textmessage buildslot_blocked
- }
-
- #-------------------------------------------------------------------------------
- # The maennel can suddenly FLY
- #-------------------------------------------------------------------------------
- on _maennelcanfly {
- playfeedbacksound book:feedback/backpack_active.wav
- textmessage backpack_active
- }
-
- #-------------------------------------------------------------------------------
- # The maennel was attacked
- #-------------------------------------------------------------------------------
- on _maennelattacked {
- playfeedbacksound book:feedback/maennelattacked.wav
- }
-
- #-------------------------------------------------------------------------------
- # The maennel was killed
- #-------------------------------------------------------------------------------
- on _maennelkilled {
- if {[/world.isnetsession]} {
- respawn_character
- } else {
- set lalive false
- set uclan [/world.getuserclan]
- if {$uclan != "null"} {
- set uland [$uclan.getplayerisland]
- if {$uland != "null"} {
- if {[$uland.getenergy] > 0} {
- set lalive true
- }
- }
- }
- if {$lalive == "true"} {
- newv chptr_fadeout
- oneshottimer 3 _gameover
- } else {
- oneshottimer 4 _gameover_fadeout
- oneshottimer 7 _gameover
- }
- }
- }
-
- #-------------------------------------------------------------------------------
- # Game over fade out
- #-------------------------------------------------------------------------------
- on _gameover_fadeout {
- newv chptr_fadeout
- }
-
- #-------------------------------------------------------------------------------
- # Game over
- #-------------------------------------------------------------------------------
- on _gameover {
- nm_ingame_endgame
- }
-
-
- #-------------------------------------------------------------------------------
- # HouseMenu: repair
- #-------------------------------------------------------------------------------
- on _menuinforepair {
- textmessage repair
- }
-
- #-------------------------------------------------------------------------------
- # HouseMenu: remove
- #-------------------------------------------------------------------------------
- on _menuinforemove {
- textmessage trash
- }
-
- #-------------------------------------------------------------------------------
- # HouseMenu: default
- #-------------------------------------------------------------------------------
- on _menuinfodefault {
- textmessage use
- }
-
- #-------------------------------------------------------------------------------
- # HouseMenu: sleep
- #-------------------------------------------------------------------------------
- on _menuinfosleep {
- textmessage deactivate
- }
-
- #-------------------------------------------------------------------------------
- # HouseMenu: wake
- #-------------------------------------------------------------------------------
- on _menuinfowake {
- textmessage activate
- }
-
- #-------------------------------------------------------------------------------
- # HouseMenu: input
- #-------------------------------------------------------------------------------
- on _menuinfoinput {
- textmessage input
- }
-
- #-------------------------------------------------------------------------------
- # HouseMenu: output
- #-------------------------------------------------------------------------------
- on _menuinfooutput {
- textmessage output
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: Garage
- #-------------------------------------------------------------------------------
- on _infogarage {
- textmessage scoutgarage
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: Storage
- #-------------------------------------------------------------------------------
- on _infostorage {
- textmessage artefakttresor
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: Press
- #-------------------------------------------------------------------------------
- on _infopress {
- textmessage artefactpress
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: Flakbuilding
- #-------------------------------------------------------------------------------
- on _infoflakbuilding {
- textmessage guntower
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: IslandDrive
- #-------------------------------------------------------------------------------
- on _infoislanddrive {
- textmessage navtower
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: Powerplant
- #-------------------------------------------------------------------------------
- on _infopowerplant {
- textmessage sammler
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: Windmill
- #-------------------------------------------------------------------------------
- on _infowindmill {
- textmessage powerplant
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: spellbomb
- #-------------------------------------------------------------------------------
- on _infospellbomb {
- textmessage spellbomb
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: spell
- #-------------------------------------------------------------------------------
- on _infospell {
- textmessage spell1
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: Leveldrive
- #-------------------------------------------------------------------------------
- on _infoleveldrive {
- textmessage ebenenantrieb
- }
-
- #-------------------------------------------------------------------------------
- # ArtefactMenu: Silo
- #-------------------------------------------------------------------------------
- on _infosilo {
- textmessage silo
- }
-
- #-------------------------------------------------------------------------------
- # Keine Boosterladungen mehr
- #-------------------------------------------------------------------------------
- on _noboostercharges {
- textmessage backpack_empty
- }
-
- #-------------------------------------------------------------------------------
- # Hindernis im Weg
- #-------------------------------------------------------------------------------
- on _islandcollided {
- textmessage way_blocked
- }
-
- #-------------------------------------------------------------------------------
- # Zuweit draussen
- #-------------------------------------------------------------------------------
- on _islandoutside {
- textmessage radius_reached
- }
-
- #-------------------------------------------------------------------------------
- # neues artefakt zamnandergebastelt
- #-------------------------------------------------------------------------------
- on _transformsuccess {
- textmessage success
- }
-
- #-------------------------------------------------------------------------------
- # kein gueltiges rezept
- #-------------------------------------------------------------------------------
- on _transformfailed {
- textmessage unknown
- }
-
- #-------------------------------------------------------------------------------
- # kein gueltiges rezept
- #-------------------------------------------------------------------------------
- on _nonavpoint {
- textmessage not_available
- }
-
- #-------------------------------------------------------------------------------
- # is voll
- #-------------------------------------------------------------------------------
- on _storagefull {
- playfeedbacksound book:feedback/storagefull.wav
- }
-
- #-------------------------------------------------------------------------------
- # reingeladen
- #-------------------------------------------------------------------------------
- on _storageinput {
- playfeedbacksound book:feedback/storageinput.wav
- }
-
- #-------------------------------------------------------------------------------
- # schlafen legen
- #-------------------------------------------------------------------------------
- on _garagesleep {
- playfeedbacksound book:feedback/garagesleep.wav
- }
-
- #-------------------------------------------------------------------------------
- # aufwecken
- #-------------------------------------------------------------------------------
- on _garagewake {
- playfeedbacksound book:feedback/garagewake.wav
- }
-
- #-------------------------------------------------------------------------------
-
-
-